package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksRasDO;
import com.starlink.model.request.MallBooksRasRequest;
import com.starlink.model.vo.MallBooksRasVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksRasDtoMapper {

    MallBooksRasDtoMapper INSTANCE = Mappers.getMapper(MallBooksRasDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksRasDO
    * @return
    */
    MallBooksRasVO do2VO(MallBooksRasDO mallBooksRasDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksRasDO request2DO(MallBooksRasRequest request);
}
